/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 12:42:39
 * @Description  : 系统概览相关接口
 */

import type {
  OverViewRes,
  SpaceChartReq,
  SpaceChartRes
} from '@/types/overview'
import request from '@/utils/request'

// 查询系统概览相关信息
export const getOverviewInfo = () => {
  return request.get<OverViewRes>('/overview/info')
}

// 查询用户或者部门的空间使用相关信息
export const getSpaceChart = (params: SpaceChartReq) => {
  return request.get<SpaceChartRes>('/overview/spaceChart', { params })
}
